#pragma once

#include "MainFrame.h"
#include <opencv.hpp>

// MainFrame frame

class MainFrame : public CFrameWnd
{
	DECLARE_DYNCREATE(MainFrame)
private:
	CDialog m_dlg;
	CvCapture* m_pCapture;
	IplImage* m_pFrame; 
	BOOL m_run;

public:
	MainFrame();           
	virtual ~MainFrame();

protected:
	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle = WS_OVERLAPPEDWINDOW, const RECT& rect = rectDefault, CWnd* pParentWnd = NULL, LPCTSTR lpszMenuName = NULL, DWORD dwExStyle = 0, CCreateContext* pContext = NULL);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnPaint();
	afx_msg void OnClose();	
	void  OpenCarme();
};


